<?php

namespace App\Http\Controllers\Backend;
use App\Http\Controllers\BaseController;
use App\Http\Middleware\AdminAuth;
use App\Params\Backend\AddressListParams;
use App\Services\Customer\AddressService;
/**
 * 客户收货地址管理控制器
 *
 * @package App\Http\Controllers\H5
 * @author WangBin
 * @date 2021-06/11
 */
class AddressController extends BaseController
{
    public function __construct()
    {

    }

    /**
     * 客户列表
     *
     * @throws
     * @return
     */
    public function getList()
    {
        $param = AddressListParams::create();
        $ret = AddressService::getInstance()->getList($param->toArray());
        return $this->success($ret);
    }
}
